package com.nmgsr.ptmsapp.interfaces;

import android.content.Context;
import android.webkit.JavascriptInterface;

import com.nmgsr.ptmsapp.activity.MyEchatsActivity;
import com.nmgsr.ptmsapp.activity.MyMapEchartsActivity;

public class WebAppInterface {
    Context mContext;

    public WebAppInterface(Context c) {
        mContext = c;
    }

    @JavascriptInterface
    public void onCitySelected(String cityName) {
        // 处理城市选择事件
        ((MyMapEchartsActivity) mContext).onCitySelected(cityName);
    }
}
